Only select for button and pointer event on toplevels
authorAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2009 10:56:57 +0000 (12:56 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2009 10:58:42 +0000 (12:58 +0200)
commit6fef640debbe468586ff866cbef38d7a29c452d1
tree5e7ee72d8a39c0ec825173b04298921d43efaf1b
parent5a39fdbba1ed4922b65b0a9e9c245c7dabbb688d
Only select for button and pointer event on toplevels

These event types propagate up the hierarchy anyway, so this means
we avoid setting it unnecessarily. This is especially important
for button press event, since only one client can select for this
on each window, causing X errors if two clients do it.
gdk/gdkwindow.c